package com.online.websocketcluster.service;

import com.online.websocketcluster.service.impl.AgentInterfaceServiceImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 *   坐席接口服务
 *   @author hsc
 *   @create 2018-04-24 10:35
 */
@FeignClient(name="agent-chat-manage-server-cluster",path = "agent-chat-manage-server",fallback= AgentInterfaceServiceImpl.class)
public interface AgentInterfaceService {

    /**
     * 发送消息通知给坐席接口
     * @param serviceId 客服ID
     * @param sessionId 会话ID
     * @param eId 企业ID
     * @return
     */
    @RequestMapping(value="/sendMessageByAgent",method=RequestMethod.POST)
    Map sendMessageByAgent(@RequestParam("serviceId") int serviceId, @RequestParam("sessionId") Long sessionId, @RequestParam("eId") int eId);
}
